﻿@{
    Bundle("jquery_cookie");
    Layout = "../Shared/_Default.cshtml";
    ViewBag.PageTitle = T(Res.Name("Title"), JDM.Int32(Model.EntityID));
}

@section Breadcrumb
{
    <a href="@Url.Action(Loc.Act("Index").Ctrl("Customer"))">@T(Res.In("WebAdmin").Of("Navigation").Of("Commerce").Name("Customer"))</a> &gt;
}
<section class="box">
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery('@ID("#tabs")').tabs({
                create: function () {
                    jQuery(this).tabs('option', 'active', jQuery.cookie(jQuery(this).prop('id')));
                },
                activate: function (event, ui) {
                    jQuery.cookie(jQuery(this).prop('id'), ui.newTab.index());
                }
            });
        });
    </script>
    <header>
        <ul class="bar toolbar">
            <li><a class="button confirm" href="@Url.Action(Loc.Act("Delete").Ctrl("Customer").Set(new
            {
                id = JDM.Int32(Model.EntityID)
            }))">@T(Res.In("Common").Of("Act").Name("Delete"))</a></li>
        </ul>
        <h3>@ViewBag.PageTitle</h3>
    </header>
    <section>
        <div id="@ID("tabs")">
            <ul>
                <li><a href="@ID("#tab_1")">*</a></li>
                <li><a href="@ID("#tab_2")">@T(Res.Name("Addresses"))</a></li>
            </ul>
            <div id="@ID("tab_1")">
            @{
                Html.RenderPartial("_Update");
            }
            </div>
            <div id="@ID("tab_2")">
            @{
                Html.RenderPartial("_Addresses");
            }
            </div>
        </div>
    </section>
</section>
